Made Creation of links and configuration two functions