Remove legend for display in seperate div