Update toolbar when data of a selected item changes