Time filtering working on main page