renamed the addButtons method in addOperationButtons, and cleaned some whitelines