dynamically creating the buttons for the tools