adds buttons for the action toolbar
allows changing the zindex