clear code + handle not admin routes