Removed extra end so edit page loads