extract to application_helper