changed render to draw in controller