updating views and controller