detect if a Mac // disable close button on edit a task window