add helper methods to application controller