adds menu for creating new threads
better handling of empty code names (ignore on create, don't save if empty on update) - fixes #184