handle timer
this one with ngAnimation causes close delay bug