added delay to tab retracting