revised api integration, added more views