Call user's option for beforeShow and onClose instead of overriding them