Refactor and change the way the listbox & tab page title is updated.

Fix for #73.