added helper_method to application controller