Convert prompts to cocoaDialog & clean logic a bit