Implemented settings dialog and related handlers