Editing and better delete api.