add function user can edit gallery