added function for checking mobile devices