Restore events on topbar buttons after a render