Added helper function in application_helper