Button state check change

save previous button state to compare against