remove duplicated title setting code into application_helper