Fixed a bug that prevented your cursor from moving to a newly created unit right away. The interface would lag as it waited for confirmation from the server that the new unit existed, which meant if you typed immediately after pressing return the typed characters would disappear.
Fixed this by creating a temporary unit that can take any new input, which is then copied over to the new unit when the real unit is given by the server. I think this solution is okay but there's still some noticeable lag when the temporary content is moved over to the new unit. Will continue to think about ways around this problem.