Fix close buttons masking the tab gradient.
Session refactoring mostly done