add preapre event to Render