Cleanup: MainDialog
Updated changelog
Splitted nontrivial condition controlling MainDialog into own function