cleaner code, ajax, delete entries