refractor code

-Delete some nslog and comments
-add scroll to first row in search view