implements countdown before selfie