made close button more closable