Lot of work!

- re-enginering of the code started!
- separated all functional units of widgets: map, tab, and img
- some polish...