fixing mobile functionality