working version, view close