Remove marks in text panel if annotations panel is not visible