added prerender and postrender callbacks
1.1.0