refactoring all display fonction and create display file by type