render separeted from gui, gui attached to main.c