Added functionality to add items to list on enter and when save button is clicked.
Refactored code a bit and renamed.