How to add a predefined widget?