Creating dynamic dialog