Saving previous view modes in private field of OutputWidget

Better understand the issue #509 more closely, but seems that it solves it