refactor _updateDataTableContents
refactor _handle_btn_new,move unused code and make faster