add widgets control functions