controller changes for modal forms