Fix dialog layout