added unchecking and clear functionality