Fixed error in on_ActionAdd_triggered() for adding blank  text
Fixed overusage of variables.