Remove some code from the preview page to rewrite it later