Added principal controller and fixed commnads to create and delete cards