Implement cocoon gem for nested files for document. View is still really baic