added scripts for header and footer