added view app; many other changes