reorganized pie panel editor, added option to change legend position