add viewregdate var on installation