added back missing code for touch controls