fixed API and edit page to show current selections