Implement dialog UI and interaction