refactoring in package algo, edit toolbar-buttons added