close document by clicking tab with middle mouse button