Implemented cleanup of time window on back btn