new event for showing the preferences dialog