fixes delete after ajax load
and fix for last commit