added create / update / destroy functions with flash notice