add index.php scan and give options of preview