removeBeforeSearchandfixtheNavBar