Added adjustment. Added code to handle modal on search.