updating model for code_viewer