Created cell erb file and extracted necessary code from index erb