Code for prompt dialog moved to separate service