rewrite controller api/controls