add on close function option when using hover model