Added a callback method allowing to perform additional actions after rendering