careplan prep refactor of edit module details view method

depends on https://github.com/dimagi/commcare-hq/pull/1881