added scripts for pages