Rename title to header and move content height set to a function