added openOnFocus option