added option for disabling close on backdrop click