Disable viewmode switch

I needed to disable the viewmode switch for a client, perhaps useful to others as well.