finishes work on alert and document handler