adds header and bottom panel