update sample to render something and use sth render callbacks.