Autoselect main input on each page