Adding a delegate to REMenu for handling before and after an open or close event.