fixed bug with main view being cleared

with multiple pages you must save the views explicitely