Fully implemented the notebook widget.