preparing popup output