adding state changes, creating a management object for the tool bar.