Move admin menu setup into an event handler