Add preferences manager and dialog