Added callback function for TAP gesture