added tapped protocal to view delegate