added close button; tab rearrangement; own tab drawing