small changes, added a details action that returns json