added touchscreen control