update index, fixed margins