added setWin & getWin to view.