connection between main, form, and layout documents