add a settings dialog. closes #37