added simple animation to "open" and "close" a view