Added header popups. Refactored popup and topmenu class structure