Refactor some jobEdit controller