prevent second prompt from opening if first one is cancelled