javascript udpates
immedialty save on add/edit