Optimized appearance of popup
Fixed issue with history (case when some sites are going offline).