create and use function that changes the link to '#' if on that page