Restore edit reply delete for search

This PR will solve the two remaining open points for issue #617

In the search page no reply was possible before because the newly created annotation remained hidden and the edit function was editing the highlighted text not the annotation's text.
Both of these issues are solved now by this PR (and the tests run well locally too)