Adding ui-corner-top to the header div when the title div is hidden

Adding and removing ui-corner-top from the header div when the tile div
is hidden/shown - this means that the rounded corners don't look cut off
at the top when the title div is hidden.