refactor edit, delete for current user  on search
clean up whitespace and commented out code