fixing view errors