Made global views work

Fixed bug: when updating views the changes are immediately visible