maybe move `$viewParams` inline.