detect mobile on all pages