allowed popup to work and added preliminary way to handle notifications, before clean up