updated to have api and edit api work proper