restructured Toolbar API to be more defined with the use of constructor function && prototype