Added code to index view for subjects