index and userindex

the finished index and userindex