update layout of the index