change the function get key from URL