(fix) Moves client side hooks before server side routes