api index view cleanup