Fix for searh. Refactor category,author,search views