move all the display logic into angular and add the api route