mid refactor forms