switch from page to web component