Added event 'afterMainMenu'

Closes #1683