Fixed #9 Simple dropdown folding animation

Merged freedomson's patch with some refactoring.