Touchscreen and buttons recognition fix