fixed flipping with close button
Merge pull request #11 from stevenmiller888/master

fixed flipping with close button