refactored toolbar_component to prototypical inheritance (removed commented code).