convert layout to use knockout.js