Fix admin template routes and add category deletion