Fix tabs
Fix zeroline bug
Fix legend buttons bug
Better buttons logic