adding and updating views