fixed some bugs and add filters for search, not work yet.