set mobile redirect code at application_controller