addElement method implementation which provides adding elements 1 by 1 into the listbox