add model & use input in edit page