Touchscreen and flow of control code