make add-event work with fullscreen modal