Clear button now gets disabled when there is nothing to clear