1. Implemented toDom from fragment