restful updates to api and frontend