Updated index and application.html