removed unused mobile device logic in the js.erb views, fixed data_entry redirecting and flash message