Fix dialog window style and position on screen