fixed main section
fixes on data api
added preventdefault on close
new events, fixes managing browser events