Fixed for mobile devices.
Fixed some errors when the run/walk button is clicked.

Still many errors to be fixed.
merging changes