changed the loayout of the index page and sorts