fixed some bugs in the header, fixed issue with the dynamic spacer div