Added API calls in main activity, added imports.