refactoring of grid and history and added simple vm binded by knockout