update view controller and various other things