moved code for separate touch controls to separate functions (cleanup)