adding logics for inflows/outflows screen.