fixed bugs related to touch controls