simplified API calls and added basic styling