rewrite showAction & add updateAction