Making link work properly