refactor index view

refactored application/index.html.erb and layout/application.html.erb files.