memset added to widgets initialization, avoiding memory garbage