use transforms to make the dialog smooooth