modified the incidents controller