change index and detail page UI