Remove dialog dependency