rework editor and editor layout to allow editor to be used with other resource types