Added a method to find all widgets of a given page. Fixed a bug when walking a switch with a given mode.