fixed minor bug so that enter keypress only works when search box is in focus