Changed index page format by adding pagination