Added new gadget API, hook API, and modal box viewer/editor.
improvements