handle the enabled flag for widget actions