Added toggleLinks method.