Added setLocationRelativeTo to dialogs