Moved rendering to ActiveState