only render header when it has not been rendered already