Implemented settings dialog accepted and canceled