update css class for popup window