added controller for render