remove reference to dashboard page, add guards around js rendering and woocommerce callback