hidden input used to get curr url using the func