Created public method for setting the operation to edit.