implemements initial popup