document preview hiding after searching