added option for close button

i have added an option for showing the close button. It is set to false as default.