assign $wei to view variable to