Added events before and after initBody

To allow integration with other rendering process