widget: added panel.
widget: refactoring. added 'static' to internal functions.