Add alert to dock button handler