allow "message" in the historty popup to open the contact messages dialog
watch "delete" event in resourceviewer to close the resource viewer when the resource is deleted