fixing the create dialog closing.