optimize header for mobile