widget can close itself and can have default value
updated version 0.1.1