changed the index function in controller