added controllers and modal for document