fixed rb and index erb
added index