close a view by clicking it again