updated animation and smoother fade in out for search bar