Added tap gesture functionality.