Remove CommandController's dependency on dialogs, use main#showDialog instead