Set mobile detection in form load