Add enable or disable button based on the condition