searching with date fixed

fixed the searching with date. also now hitting Escape after having
clicked on a row in the table, it will go back to OpenPage.