added text label to widget; renamed functions