added title & closing to a dialogbox