Adding scripts to layout for pageslide and refactoring css for startup, pageslide and application