Dialog working, gives warnings