Add function to return booking URL, remove duplicate code