Changed override of cancelButton and finishButton to be 'def' rather than 'val' so they can be overridden again as needed.