implemented view calendar event controller and define a function to triggering the modal