add pie chart to income vs expense and refactor