added edit and income mode for income/expense dialog