adds modal popup with bug of not going back to original page when closed