Fixed Mobile checking function (isTablet checking was a bit wrong)