Checking for data set count before allowing users to delete fields

Moved all of the edit field code into  the success of an ajax call that checks to see if you can delete fields or not. This should make it so that if you delete the last dataset from the list you can start deleting fields without reloading the page