Add code in the views to get template/dossier. not tested yet