implement initial filter
fix #7, add function for popups