- Make search entry insensitive on non package pages
- minor refactoring