Added server side mobile detection