take out methods from application_helper