inserted item appears at the top of the list
fix bug in deleting tasks