add popup is done, search mechanism is the last thing to be done