add a preferences dialog