added controller and fixed application.html