add firstboot flag for render
add afterRender callback