expense add state & summary table sort & logic