Fixing some styling and best practice issues, and adding max-width as a param to popup-tip and popup-menu