Refactor application.html