refactor for croogo theme currently used at croogo.org