fixed some view updating issues