Index.php checks for edit variable