updated controller and unit tests. Added page to try the controller manually