Fixed app controller to respont with json