Fix JS behavior for registration scenario display during edit