add function `edit` but not refresh the front page yet;
api error in `end` & `update`