fixing dialogue button