changed input function on Discover button