update update score function for mobile