dealing with selected users not getting removed after dialog is hidden