fixed manage/clear button detection