WP-3862 Added new code to enable/disable the Add button