Started moving from modal dialogs to js.