unit index view almost partially done