API for dashboard view