fix for [BEAM-1587] Allow closing internal frames by click with middle mouse button
fix for [BEAM-1588] Show close button on internal frames' tabs