fixed: event delegation after closing and reopening of the _mainView