taking care of the first version of the window popup