Made the toolbar panel context sensitive.