updating views with tables