make the toolbar dynamic