update to viewpinmodal