replacing prompts with modal