Add checking for internet connection and collapse action view when submit search.