fixed list and generate enable/disable states
added sample codes that work for editing pingying