Expand menubar
Add legend
Add sub4
Restructure t_element and fix right/left bug