refactored code only needed by Account and Expense Edit into common superclass