moved include inside the if statement and added cache load in edit.php else we get an error