Use setTimeout trick to make render event work. Change 'rendered' to 'render'.