Only display note form with notes

- Fix: properly iterate list items for tasks and notes