* update viewfunc