Fixed pressing enter on searches refreshing the page