Use contexts for switching native/web

Add contexts for switching to webviews

Clean up contexts