make index work well on mobile