fixed legend covering menus and making them not work