added scripts for main
moved to php files and angular routes