Cleaned the dialog style a little
Added the changes to tide model and adapter.