Modify API for addding new commands so that HTML is declarative