Adjusting legend position and fixing problem with legend label when resizing.