improved mobile detection via helper method