update index, main,style