adding helper functions in site layout templates