fix code in index & style