Render the popup with margins