Revised some logic and added URL global for syndicate