fix
improved rendering process in controller