adding javascript to enable control element for
the currently selected action.