added controller as ctrl functionality