worked on task 5 (UI for dialog)