parameterized toolbar component