deleteLater() and modality options added