Modifying the report query in the controller