Simplified code for edit screen.
Simplified edit page