update with create function and gallery