update attribute buttons via ajax calls