How to identify widget type already added in form?