close floating panel on outside click