Minor changes to how popup windows are diplayed.  Also changed addhistory not bugging if no patient is searched