Refactor views by making a search form partial. Also fixed indentations.
Fix error from blank searches.