fixed timer and transition. added clearTimeout