add snippet for widgeting