close edit calendar dialog when clicking button again