- added a method to clear view