adding the dialog to enter new todo item, adding the item to the list and storing in shared prefs