add REST controllers and a form for new and edit