refactor to put dynamic title and html skeleton in application.html.erb