Refactor panel header view spec