Optimized the view class