Add defaultoptions and event listener