add spec for edit page