toolbar registering event listeners to handle title and buttons