fixed bug where clicking search would refresh page