SOcket io added, bugfix on save button, smart saving