Update margins on popups