Added options to postRender and postRemove