del useless code in IndexView