added view & experimenting with conditionals in search.js