fixed some bugs in the header and thumbs on homepage