Adding controller api