added some view code