update documents index view based on roles