updating preview page