refactored common code of Grisbi and qif import dialog fragments