Fixed root and production new/edit/delete issues