Refactor / migrate missions dialog