Attempt at linking within and outside of window