make the admin templates work correctly