adjusting some view code