Updated views/layouts/application and refactored.