added index erb and get to server rb