Refactor form to be parent of all modal contents