Broken search and register patient pg#44

@ereng. It looks okay. I've modified the pop-up ao it looks a little bit more professional. I've also removed the new js function you'd created to close the dialog. We already had a function doing the exact same thing.