finish view code for search, need to create html file