Moved legend panel to the top