setup page for edit