update index & style