added a working controller