Fixes the links to queries in the welcome and pokemon screens.

This commit makes the links mentioned in the title work.  Note that this does not fix a bug that occurs when a button is clicked, followed by the clear button and the initial button a second time.