update so the branch filter is sorterd
refactor header