changeged the redirection of the user to mobile/desktop to be based on user-agent string