Cleanup modal dialogs, add licence.