add dialog dependency