Add some styles to dialog and fixed a compatibility with windows