add check initialized functions, and add code error
Finish rename_buttons