Added confirm dialog

Also fixed up form submissions