API, changed controller.server.trigger to controller.trigger