Draw borders correctly on notebook headers