model for edit page and mapping