added show more show less functionality, added table index