use PointerEvents to prevent

1. add beforeClick event to flatButton
2. add setPointerEvents function
3. set the pointerEvents properties of cancelButton and confirmButton to 'auto' before page enter
4. set to 'none' when another button is clicked