implemented onLabelTapped method