attachments complete funcionality, add another field functions