used flexbox to vertically align the modal