Added invalidate view method