add multiple documents display logic and styles