combine create and edit reipes into one template and controller