Make viewing mode switchable on server side.