onclick hide was disabled and blur on esc was added