changed footer for categories and added CSS to prevent FOUC