Create modal generator