Added the feature of redirecting to external URL