add event handler for gist admin page