Revert "updated insertEntry to save the jQuery search - performance"

This reverts commit 3d7bab02bd30511bc6a22128e937aa07013654fc.
fixed defect on marking all complete and closing window