updating button check