added changes to api and edit api and router