Add select time for search. Add window for clear history