remove scope on dismissing search bar and removed uneccessary logs