1.control the statuses of the buttons' on list page
2.editing will not insert a record anymore. it will update the database by id