add view and editor