added attachment and note crud