implemented redesigned popup and made first tweaks to JS