OK I just moved the coding in tpl_header to define pages editor and put it in the define_main_page via the admin. Thanks me