make the action buttons honour border in popup

hi,

previously the buttons were on a span and were misaligned from the left&right border, now they have the same distance from the popup border