Closing view when body is clicked