added flexbox styles and fixed header