change button state after switch resource type menu