Added callback to be notified when the menu has been closed. Updated Demo1 to use menu closed callback.