add mobile detection code