register sample widget