updated api requests to send back the new data so that angular can automatically update the view to show the newly created or modified data