not removing undo link immediately when it's clicked