Added helper methods to application controller