bug fix
refactoring
link to the server with adding ajax request on *command*