Add a way to prevent hide action.