Moved more functionality into api

updateItem and removeItem for management page