Changed the way to match url and get the inputs