Removed legend from the toolbar and added it to the map control. It can be seen at all times.
Implementing the expand/collapse of legends. Not complete.