Added widget logic to required pages.