Defined priority and minimum for header title
Added mode control
Fixed fit priority
Added resize mode