added animation to show/hide