Add support for widget in xml files.

Signed-off-by: Mile Davidovic <mile.davidovic@gmail.com>