fixed view bug in index