updated preview page by reading html