add gesture to overlay that dismisses the overlay when tapped