Buttons update according to row selection