Attach enacted view and refactor controller