updated init_button and added updateUI