refactoring, extension starts as part of page content