new background script and cleaning up pop html/css