fix mobile functionality