open and close dialog methods added.