protect delete action against no record selected, add new fields to insert as well