Fixed the way admin routes are handled