fixed issue with hiding closing button