Format task item in lists