added calls to wp_head and wp_foot