added view class and app class