made dialog dismissable; fixed typo