Update index.php

Add output preview