Made changes to detect mobile browser in two files