Close Button

I messed up the first close button pull request. This one should work better. I have modified the index file so that it should automatically use the closeButton. Hopefully this one works better.