* fixed FF bug
* fixed crashing bug
* modified the reset, cancel and hide functions