remove console outputs
clean up; fixed: closed event