modifications to api calls response sending ,api routes ,minor changes