add edit toolbar, rewrite the api to get rid of delete and put requests