Styles popups. When an event occurs, popup closes.