added disabling of buttons