Modified the timing to show mask layer
Added action.resetComplete() option