update entries_controller.php