fix jquery detach function on list page