implemented a dispose method to the view class.
added a view sample.