updated for minimize/maximize.
Merge branch 'master' into gh-pages