Refactored click event to touch event