move header resize logic to header view