Add some business functions for theme compat logic
Code cleanup to follow wp stanbdard