updating button classes