got updating the view to work, but iopen method isn't working in view