Fix issues #161 and #162

Moved the search bar to the header. And also fixed error in entryview.php