fixed issue related to the search bar. To load searched data when returning from detail screen