try to fix bugs in application.html