updating button properties