bugfixing: views now save and load correctly