fixed some view problems