default action to join
refactoring code, autofocus html inputs
more code refactoring