Update preview

update controller and preview page