adding condition to show event map