fix errors, working controller, no real functionality yet