Fix: Added else condition other than checkbox widgets. was working for CheckBox only