add state for popup history, fix bug of intermediate history state between popups
add state for popup history, fix bug of intermediate history state between popups

klpdotorg/dubdubdub,klpdotorg/dubdubdub,klpdotorg/dubdubdub,klpdotorg/dubdubdub