added button enabling/disabling