when json is empty it returns to the form