api.js updates and API home screen functionality