fixed a bug in view class
Added events