restore the "tabvisible" function
Merge branch 'ledger' into testing