fixed bug in router, fixed bug in Widget's setClass