adopted some functionality from other themes to the TreeFam theme