Added view_entry.rb model, initialized query search