Preview & submit widget not working