AJAX add working but field not blanked and pagination not working