Fix path issue on script includes
Update layout code for view page