Rewrite viewparameter parsing