modals added - display style changed to flex box for horizontal centering