operationButtonPressed function changed