added the "hideOnClickOutside" option