added change_icon function, record button has two states