add innerledger handling to StaffTypeTemplate Dialog
fix state behavior of InnerLedgerWidget
move InnerLedgersWidget to separate file