update ui
Akhil Change
Some code optimization by introducing ToList