Fixed bug in Dialog

1. Confirm dialog worked not well
2. Default foot setting can't work
3. Added a confirm dialog demo