extracted ToolbarComponent to manage buttons