bug fixes and added functionality

search view now works right, and i'm ready for the spercial web view to
see latex.