adding function for creating new links