Fixed web dialog wrong layout correction.
Implemented setting dialog theme from dialog options.