Removed the toolbar button class and implemented it as another constructor in the button class.