also register an event handler for the tab controls (when selecting a new page)