Update navbar search function

Additional:
1. add erb functions to external.js
2. add _navbar.js.erb to external
3. adjust external controller
4. hide password in search controller