minor refactoring of url actions in erb forms