improve the style of detail and grid view