Refactor view and move methods out of ApplicationHelper into SessionHelper