change viewvalue to $vaievalue