Fixes an issue in which the views couldn't be updated, while having the rights to do so.
Code cleanup: removed STDOUT codes from several files