added animation for doc selection