start porting the Doc UI