added dynamic url generation