fixed some view issues