Rewrite the frontend to use angular and add pagination to the chart