Added villagers dialog logic