moved renders to init