refactor activity page for revised api endpoints