Added dialog dependency and fixed problem with blank page when dialog was shown