added associations and completed index view