adding a closing button to the top right corner