refactor inline forms process