refactor graph drawing and add finances cash graph tab