adds support for pages mode to web form preview, closes #299