add data form updating. things sort of work now.