style and layout correction for search