update layout and changing index content