Dialog - Refine code
sample - more proper name