Converted block edit into knockout.js