corrected an is_string function call in the addCustomControl methdo