refactory title generate method
Rewrite the application.html.haml, add a navbar