Adjust layout rules for dialogs
Handle style argument to dialog functions