moved legend to top