input box clears after adding new task and updates to list