added looping for main index articles