changing button code