Fire the 'new_notebook_clicked' event before opening a new tab in the browser.  Use "triggerHandler" to fire the event so the handler can return a value.  If the handler returns false, the default handling of the new notebook button is skipped entirely.