Added close button functionality

Added a close button functionality... However had to convert your code for my project to UTF-8... Thats the reason for the changes in your comment lines :-)