Struggled to get the clear button working