buttons refresshing appropriatly