moved reset logic to block component