changes layout of index