ensuring the layout is always centered to be inline with the modals