small fixes to api and index page