adding a check to see if it is mobile or not