enabling and disabling of buttons