add example using render on init
change afterOpen and afterClose hooks to fire in callbacks that return after the open/close action is done)
0.5.2