added Header Class, moved the resizedHandler code to new Header Class