refine the index and css