main legend positioning