Adding preview dialog to the modular input page (#757)