Added touch screen handler function