building and updating views