update backend merchant function and ui