Created function for color change and added changing link colors