Added viewmode switch